/*
 * 用户基础类
 * @author: huangzong
 */
import C from '@/common/common.js'

class User {
  /*
   * 打开基础设置页面
   */
  async openAddUser (row) {
    return await C.openBrowserWindow('/addUser', row, {
      transparent: true,
      frame: false,
      // openDevTools: true,
      width: 700,
      height: 500,
      useSpa: false,
      spaModel: 'shop'
    })
  }

  /*
   * 获取用户信息
   */
  async getUserInfo (id) {
    return await C.ajax('/shop/user/userinfo', {id: id}, 'post')
  }
}

export default new User()
